package com.cskaoyan.controller.wxuser;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.wxuser.WxIssueListVO;
import com.cskaoyan.service.wxuser.WxIssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 冯子靖
 * @Description:
 * @Date: 2022/7/22 11:16
 */
@RestController
@RequestMapping("wx/issue")
public class WxIssueController {
    @Autowired
    WxIssueService wxIssueService;

    @GetMapping("list")
    public BaseRespVo printIssueList(Integer page, Integer limit) {
        WxIssueListVO wxIssueListVO = wxIssueService.printIssueList(page, limit);
        return BaseRespVo.ok(wxIssueListVO);
    }
}
